working on script generator - unit tests now passing