added logger swap in option