debug monitor bugfixes