refactor build files