fix new_record issues
fix URI joining issues