initial commit of socket building