fix process control bug
implemented status file