fixed using stdout in smudge
fixed using stderr and stdout