adding thread reading data
compiles
compiles and conflict fixed hopefully