rearrange booleans and upcase log_level