more fixes on scatter output path