refactor(*) major refactor and node server implementation