execute migration
add tempalte hook
fix migration not using seconds