tidy up domain setup file