Well, if autoProxy is false, we wouldn't fail so I can't move it before the if statement.  I guess I could move the scope registration down to after it but I'm not sure that it matters that much at that point...