#19 added multiple file output