create groups
store metadata as json