fixes to backref creation