refactoring build file