remove socket stuff