added support for the [device] and [device_reg] sections