added auto mapping for failure type