update server and add basic router