Update xgs scripts