Fixing up server code a bit for backbone