added checks for metadata-only