add check on CLI insert of connector-ref