add redirect for stdout