allow defining store on client; change `dir` option to `path`