Fix broken variable references
Change default transport back to :plaintext, for backwards compatibility