refactoring out the conf parameters