refactor the logging options