cross-source support for options.twoStage
working --twoStage
commit previous work
Merge pull request #1 from betchart/two-stage

Two stage