trim incoming lines, no replace in send/log APIs
implement SASL