tweak for running in subdomain