logger refactor
clean apt on export