some debug/intorspection improvements