streamlined sasl code