update main-script