updated api diagram