replace panic with log.Panicln, or log.Fatalln