added auto device detection