added xsgen script