added bootdevice detection