major refactor looking towards implementing curl_multi functionality.