NodeAPI: rework api layout and fix register