fixing bugs caused by new nc cache updating, also new code for streamlines, but not accessible to users