fix restart
improve startup ai