added flashing capability