logging for widget
simpler api error handling