add exceptions to guard clause in scope lookup