first optimization for langstat.sh