use log.fatal instead of panic