make client return a response object