this is the bug change to using connection_struct* instead of cnum.