finally fixing elusive file/note key bullshit. serious waste of time, and had to hack it in the end. maybe theres a way to build it into the relational model.