add loaded and change 'tree' to 'graph' for new cortex update