add support for metadata files