log and fix init process