add serde and factory to key value store