improved handling of empty device lists