resolved confusion over where cleartextStream object was coming from