client now handles some basic message types