added socket connecting