phases with localstorage