added capture of ratelimit headers on the API object