added debug to StoreToken