Updating to new requests api (closes #179)