use log.Panicf where possible