attempt to properly detect device