added file output (new gem needed)