reduced repition in the low-level JTAG code