correct nesting in shared id endpoint templates