fallback for access localstorage on local file