reduce some panics to warns