added pid file support and timelimit