update relations munging