additional karma logic
Merge pull request #82 from macqueen/master

additional karma logic