add one more debug handler to catch even more errors