get scopes in a better way