fixes to error messages and pathing on search