add multithread write and read