added logger output to the API fetching