better support for backref functionality. this commit is broken.