add the platform_check demo code