added new logger and autoremoval of the files