refactor configs