make metadata storage pluggable

same here, why is replacing those strings necessary?