another fix for remote sampling
Merge pull request #13 from adam-collins/master

another fix for remote sampling