main script update