remove sync api call for xml, rewrite xml fetching code to be async