split parse_c from main