adds flash functionality