added peeking into the stack to find the calling module