add log and begin template
load mir list
add main
modify main