added tidy file output