implemented certain checks related to multiple API calls