move some definitions from store2.go to store.go
remove old binary store and rewrite logic