implements simple oplog