add AD version of build script