improved nvidia-legacy support