change template config and add config commond line parser