ticket:9 made stderr be redirected to file without using grep