added control/decode and test, untested