added request queue support to api client