remove legacy platform API