remove custom host code and split setRegion apiMode check into getApiMode