datatype for pri in parser.c was left at unsigned, now use dedicated one