fixes #4 and fixes #5
expermental: local storage only.