fix example and init shader flags etc