rename api to nwapi for the change in nw