make stdout and stderr optional