added check for when a command is defined but not handled