actually, changed searching to return a pointer to the process or NULL