command parser fixed to catch an exception