minor tweek of hardware.py