updated to use api subdomain