serveral minor fixes
don't log searches when not from the main service