dump to a file handle, not to a file path