make metadata storage pluggable

ah ok, that makes sense