added scoping option