stats per switch implemented and working