fix typo, add grace period for api calls.