add logging/timing for API responses