added a limit to API polling