improved debugtools
minor fixes