added failed call detection