avoid creating socket repeatedly and trim old fluff from code.