generalise handling of generated relationships files for notes