now supporting concatenated variable detection and error levels in scanner