split jim_jtag_command into multiple handlers