factored in new recovery code