log both send and recieve of json
output to error stream when there is an error
remove print from mockgraphicsclient