store current PID in lockfile
add new feature "maxRuntime"