better handling for badly parsed requests