fix slot and out parsing
cleanup MathicsScanner