fix socket etc