add default and http handler manager
fix smarty and twig template interface