more work on browser storage

...this may break main.  set usebrowserstorage to false if it does.