fix + add file output