fixed mirror (sent all outputs to stderr)
fixed mirror