add a process manager which can detect pids properly