added --scan to listDeviecs