added cond statement for command handler in racpete