add start of a monitor for live system debugging
add -s option for startup scripts
properly close open fd