cpp wpt driver code