made name flag optional