add node and graph objects

- fix IP detection on windows
- add stale key handling