create wrappers for graph_loop use