avoiding infinite loop if plugin deps are not installed
added support for installing from plugin register