added some better failure reporting