update preload TODO: nice log file and email