xstore code