poweroff and wireless fixes