blasted scoping issue