added mutex option for device configuration