making persistance more pluggable