smarty wrapper