main Autorun script and formating