add api that returns nodes info