added debug output to nil chomp