serialize all the client stuff