added logic to see temp device id; separated out the stop command for programming mode