add cli options for format and number
fix case statements else conditions