added redirect from stdin