editted add_member to include addr and addrlen for getsockname() to work properly