prepare for domain