explain ctx judgment more, fix #315
Merge pull request #327 from mikeshulman/ctx

explain ctx judgment more, fix #315