added eachLimit to upgrade script