Refactor shared nodes. Add api endpoints