support CMD and non-CMD
U: code format, var name.
M: merge from applezqp, both cmd and non-cmd.