file output works