introduced dynamic response handler factory