reflect refactoring in buildscript