memcpy for making domain
TMP commit: domain not working with subdomains in dict