commented api_handler