some stuff / hacks in socket