extract sds reading logic