run' no longer returns an internal type (JSON), plus fixed a type inference error