added ring state visitor
Merge branch 'origin/master'