ported: most search related files