add flash automation feature

add flash automation feature