improved autorun script