fixing print and pidfile issues