user get_state instead of state
Merge pull request #3 from mmsepyx/master

remove deprecation errors