add stdin redirect