working on socket error