add smarty support