parse.c: only parse fields corresponding to type