better attachment unavailable detection