should check somewhere that debug disabling actually disables the localstorage variable too