add support for multiple devices