improved autobegin