Initial source dump. NEEDS FIXING: due to some version issues, when a planning query is received context_manager_ causes segfault