updated the diagram to match commits 824b9c35a537dc and 5a3e2f75af4c62