refactored extension configuration