search and generalFuncs update. categories appended