JTAG/COMMANDS: review scope of functions