added DETECT_DEVICE to home()