added error logging for webservice call