removed old socket code