versioned documents
fix memroy store; fix spec