move graph builder into telegraph