made the client an object