added logging of everything that is being send to the server.