improve this diagram architecture