add demo-flashing method