analytics and notification almost finished