added a bit better logging to help troubleshooting apparent bad requests