fixing search, adding debugging for camera setup.