pre-build script