unified "invalid reference" reporting