upgrade flag
add template