workaround checking device path.