fixed socket formatting