change config to use domain