update plat/server, added session middleware