added logger, changed clean to remove logs