added socket connection