fixes #1 - items in 'related' property need to be mapped to ids