add basic implementation of one-sided persistence