added initial statsviewer and some node caching