fixing /dev/null redirect and recode