detect cyclic dependencies & don't resolve a store until it's wiatfor resolves