accounts: change the pid acquisition method