start rewriting the build script