API change to provide output and input commands in the receive and send objects