add twig factory, simplify first setup.