move search function in to managerbase class