just some minor changes to the xScan