improve whatprovides and whatdepends support