simplified the graph interface, introduced a custom  data interface