add checking XMP profile (thnx to apianti!)