fix write* methods, add support for changes in client and server objects