optional encryption, it doesn't always work properly! investigating.