suppress smr-reduce stderr output
use {} instead of {0} for string formatting unless necessary
fix for trying to flush stdin after it's closed