refactor settings to use path instead of domains