implementation of mock transport.