update scripts after varInt introduction