added utility functions for device specification