working version with executeBuild refactored