minor tweaks to syntax in sockethandlers