added support to run multiple devices