added socketio for real-time updates of stats