handle mutliple devices and deploy