put all parsing logic into localStorageService