proper domain setup, logging