add PID file