refactors config/production code