- added Filewrite_with_row_index
- thread seems to work well