some logic improvements
Merge branch 'master' of https://github.com/es-andreev/PullHandler