added scoping option
Merge pull request #24 from RestPack/add-scoping

[WIP] Add scoping option