added functions for enumerating devices