Switch to scope.lookupvar function

Prior to this commit I was using unql vars. I want this to
be a little more transparent, no harm no foul