correct name lookup in anon packages