added listToMap and runCMD