switch some print() messages to self.error() calls