file output now works.