file output fix