add smarty adaptor