added more debug output.