now with file output!