example persistence api