persistence api works