add basic scoping