smarty update
smarty 3 fixes