adds 1.8.7 compatibility. fixes #2
Merge pull request #3 from rottenbytes/issue_2

adds 1.8.7 compatibility. fixes #2