conditional amd/global; linter fixes