added convert_datastore function