did stuff to client I think and slightly modified the update code