adding basic scope tree generation