adding debugging tools