Use local not global client
Merge pull request #272 from korczis/rest-merge

Use local not global client