add analytics + minior fixes