update API support and simpler signature for doRequest