Ref compatibility