adding example of the low level api