fixed bug that caused the script to always run in selective mode
Merge remote-tracking branch 'origin/pr/6'