add support for redirection (required by Docker apps);