tons of work on send_simple_http_request and api cleanup