fixed socket api