attempt to use a pid file
another attempt
again
hooked up app to dispatcher