building question index only when needed