make sure extensions are included before scopes