adding --upgrade and fix bugs if you are not connected to the internet ;)