fixing missing pid filename