layout scopes and authentication