updated build script and others