moving archive logs to end of script