updated server, main (dict syntax), predict