experimenting with tryCatch