add debugging tools