add detection of hw