detecting by looking at stack
Merge pull request #1 from shekyan/master

detecting by looking at stack