fixed redirection issues for survival analysis