added except KeyError for api_handler_global