some minor changes to the scoping mech