updated build script and dependency management