i need my curl_env.. ugh.. also needs to be rewritten at some point.