Revert "output to file"

This reverts commit d4cbf937412b67fca7a1743cdda7ae4244215ce4.