refactored config methodology