add logging for failures only