change default ignores
rm duplicated code
change problematic fn name
change cmdline in template
refactor and add entry point correctly