reduce some panics to warnings