move timestamp environment setting to appropriate place in file