fixed 'update_data' function, and client notifications.