replaced most `try` constructions