rename NS to classScope and find a class from global scope as secondary