add support for metadata blocks