fix formatting; fix minor issue in connection upgrade detection.