redirect stderr to stdout to avoid premature exit