Patched holes in request API-- extended example to allow for arbitrary api usage