simplify response handler