first version of run_ab.pl