add option to retry after failed requests