use panic in library not log.Fatalln