implemented new handlers for stats, anomaly and activities