divided "phi-search.el" into two files