option to output single file instead of list