updated output file name rules and time stamps