removed unecessary socket connections