* fix resource scopes