update to nplib, some reworks...