implement flash to header