fixed socket showing up as undefined