update buga scripts