updated the addLine/addNode functions according to new jar