prevent trailing redos