replace set with sh.export
Merge pull request #345 from MartinNowak/fixInit

replace set with sh.export