xStore code