mv find_proc func to a single file