refactoring nginx-build