end of day--infrastructure in place for process_wait