fix for output single file