update error handler and add getMultipleOpportunities