added some debug messages when I get a Bad Input response