fix some plugin syntax issues, add code to wait for network to be up before trying to download packages