store mtype in MetaStore. Buckets refactored to generic type