updated crms_oe_connect code