remove die definition and use in doc tests