added smarty plugin