prepare build environment