initial modification of code from zincmodelsourcestep
Merge https://github.com/juzhang/fieldworkmodelsourcestep