npcd.rb revised