be a little more graceful about errors