added to xmp_read