fix error with deduping entities
fix staging dependencies