Handle deprecated version state
Merge pull request #5 from arielo/handle_deprecated

Handle deprecated version state