add location and environment to localstorage