store metadata with entities