hide catch only when needed