updated nb scripts