smarty is a private object