Sync ssot

Placeholder, needs more tests and comments. 
should toArray in the store