modify socketclient factory