making pid file actually do something