expose some debug data
some fixes
debug panel