moved pid to pid_reference; created blank pid file