need to check threading deadlock issue in read/write task