adjust socket dispatch