fixes to localstorage
fixing file not existing error in api