changed some of proc.c and sysproc.c, not complete