fixed scripts and time output