scope stack wip