added argument threads to install and install_deps