add main and log file