init example and fix build