prevent api calls in dev mode