optimize init process