modify the import function of SX and JS