handling empty tag name and ctrl_cmd command