stopped using exceptions for determin the difference between json and a command name.