index uses relative paths now, bunch of fixes for the server