replace nb-shared with own tools