added in logging for searches