switched to session storage, fixed a cache miscalculation