added anonymous switch, updated for new requests version