add: toggle debug is persistant, some bugfixes