implementing the build script