added ref_ref mode