make metadata storage pluggable

shouldn't partitioned be boolean?