fix debugging code for amazon checkout script