working response_handler