modified catserver to include prediction