cleanup file output