pass serial number and device through command line