reworked debug plugin