update example to work with the new libnative