add datastoreFactory to define converter and index