separate domains and local domains, rename tables