added -cgc option to also add the name as the cgc name.