add args parser for core/cg