replace templates and fix manifest