fix socket getter