suppress broken pipe errors, correct import