simplify the client handler