fix bugs
del Makefiles in template