fix ENV and STDIN