fixing up the client agent