accept a lambda to produce output redirection config/string