Many changes for node api, server.