qualified output file names

uses qualified names for output files to add support for multiple files with same handle

fixes #223