this should be in another variable, like in the ShellPipe companion object. We got rid of the Mode static var.