fixed build scripts