fix for new rework-visit api
Merge pull request #3 from segmentio/visit

fix for new rework-visit api