updated connection state diagram