update example to work with changed low level api