get loc from local storage