[api] more work on relationships