added more logging options