better (but still bad) exclusion of ref