device definition utils base