added debugging tools