basic implementation of persistence handlers