start to refactor cmd meth set