splitting Domain from SubDomain and correct handling of domain attribute completed