added support for globbing output files