added server routes and fleshing out class interaction