XRay loader script