expose WriteAndReadAPiMessage as public