map IDEA scopes correctly