added some resiliance