add auto_domain, no need to define domain separately