use try-catch-end instead of try-end. fix rsplit.