domain names and paths are now correctly constructed