added flashes
finished first version