port to ndb, step 2 of N
port to ndb, step 3 of N