update main script