added a mutex, eliminated the 21 race conditions in store/