preemptive scigraph code, see #568