add xf magnet script