refactor recipe search
refactor recipe search
fix error handling