bugfixes and polishing debug console info