refactoring build tasks