genconf refactored