add smarty adapter