added legacy search endpoint