* optimize some cmds