build scripts fixed