fix socket utils
nim handling moves