fix ref error
updates to client