use smarty instead of twig