fix argument counting, and do it earlier
benchmarking script