an attempt to fix the stratum newline parse problem and subsequent hang