support for device count and gateway output