log file archieve and delete functions added