language changes: .with_ref() is deprecated.