refactoring - genbin for complex configuration