add flash automation feature