fix a gemstone bug and run sample from each platform first