make parse_ridlist() non-static