modified version of bench/ls