this stuff should be migrate to xExport lib to generalize its usage without depending on xCrack for just data collection.