now with proper tidy file output