now works with multigeometries when storing