changed where pid is stored