One more error class. Some refactoring of Scope class. Trying to clean up structure. currently not stable
merge