fix the possibility to return more than one msg from one cmd.