add the startup mode and change the some exception and log info