improved the build scripts