add directory scoping