add flush;change device name