change everything involving seconds to milliseconds in the scripting - better precision and better consistency