guarding refs