allow custom domains and set default correctly.