v2 of Store class and scripts for v1 and v2