minor fixes to sos functionality