implemented connection based on CUrl

far better than depending on fat guzzle