fix data read bug and add platform code