fixes small bug
Adds debugging info for external API calls