external debugger, small fixes and changes