working on RB OPT read in
more thread code