moved search code into new folder