misc update for smarty 3.x