handle http accept headers more gracefully