remove redundant socket class