simplify
cleanup
automate generation of SEND_IMMEDIATE commands