more sophisticated example that transitions from once through to recycle
made mixer more robust