port latest platform code to dongwu-0.5.13.5 branch