changed script file generation/reading to use milliseconds