opening stdout with file handle 0 is not guaranteed safe by the compiler. there's an "unsafe" somewhere in there.