autoptr for handle_response