added JTAG receive function