solving issues with localstorage impl