need to add dependencies to inferred package names, too