bug fixes and improvements for relationship mods