update flash sample
update useful scripts