wrapper for making calls with retries