handle inherited dependencies correctly