made some important modifications so the NLC doesn't crash if you skip some graphs that aren't used