use log.fatal instead of puts