logger cleanup and prereq