create auto.pl for testing