script now sort of works, but should be redone to support testing, debugging, and run - mode