try not to depend on window.localStorage as much. (0.0.41)