helpers for analytics and search closes #10