makes failure reporting a bit more robust