renamed pid_from_file to check_pid