support multiple devices

Signed-off-by: GuneetAtwal <harjinder767@gmail.com>