add a mock function for testing to avoid API throttling