made errors and messages public var