error checking, script output. almost ready for launch.