updates to code base fixed various search bugs