revert r471: pass process informatin by using the process's PID, instead of passing the process as a reference + pass the process instead