finished CommandProcessService and some bugs fixed