fixing the grammar .: grammar scoping id lookup, nested scopes