initial implementation of control transfer in/out