porting to levelgraph