handling shitty responses a little better