var scope issues (no bugs, just things varscoper found)