added PID file handler
added PID file handler