config partly embedded into datastore; api rewritten